package com.appheader.rongmaphone.entity;

import org.litepal.crud.DataSupport;

import java.util.List;

/**
 * Created by zhep on 2016/10/16.
 */
public class ProjectEntity {
    /**
     * data : {"resList":["http://img.armyhorse.com/public_resource/files/image/FILD2C1C6B2-916C-4B75-82A7-87D75A79FCF0.png@!base_style","img.armyhorse.com/57f9a48ae182da4aa10a87f3/57fc71c6e182da4aa10a88bf/57fc71c6e182da4aa10a88c0/FILD0782619-F4CD-4460-9BBE-45EB232ABBD0.jpg@!base_style"],"needDownload":true,"project":{}}
     * success : true
     */
    private DataEntity data;
    private String success;

    public void setData(DataEntity data) {
        this.data = data;
    }

    public void setSuccess(String success) {
        this.success = success;
    }

    public DataEntity getData() {
        return data;
    }

    public String getSuccess() {
        return success;
    }

    public static class DataEntity {
        /**
         * resList : ["http://img.armyhorse.com/public_resource/files/image/FILD2C1C6B2-916C-4B75-82A7-87D75A79FCF0.png@!base_style","img.armyhorse.com/57f9a48ae182da4aa10a87f3/57fc71c6e182da4aa10a88bf/57fc71c6e182da4aa10a88c0/FILD0782619-F4CD-4460-9BBE-45EB232ABBD0.jpg@!base_style"]
         * needDownload : true
         * project : {}
         */
        private List<String> resList;
        private Boolean needDownload;
        private Project project;

        public Boolean getNeedDownload() {
            return needDownload;
        }

        public void setNeedDownload(Boolean needDownload) {
            this.needDownload = needDownload;
        }

        public void setResList(List<String> resList) {
            this.resList = resList;
        }

        public List<String> getResList() {
            return resList;
        }

        public Project getProject() {
            return project;
        }

        public void setProject(Project project) {
            this.project = project;
        }
        public static class Project extends DataSupport {
            private String prjectId;
            private String lastModifyTime;
            private String creator;
            private String pageType;
            private List<Publish> publish;
            private List<Review> review;

            public String getCreator() {
                return creator;
            }

            public void setCreator(String creator) {
                this.creator = creator;
            }

            public static class Publish {
                private int index;
                private List<Pages> pages;

                public List<Pages> getPages() {
                    return pages;
                }

                public void setPages(List<Pages> pages) {
                    this.pages = pages;
                }

                public int getIndex() {
                    return index;
                }

                public void setIndex(int index) {
                    this.index = index;
                }

                public static class Pages extends DataSupport{
                    private String pageId;
                    private int pageIndex;
                    private String pageThumb;

                    public String getPageId() {
                        return pageId;
                    }

                    public void setPageId(String pageId) {
                        this.pageId = pageId;
                    }

                    public int getPageIndex() {
                        return pageIndex;
                    }

                    public void setPageIndex(int pageIndex) {
                        this.pageIndex = pageIndex;
                    }

                    public String getPageThumb() {
                        return pageThumb;
                    }

                    public void setPageThumb(String pageThumb) {
                        this.pageThumb = pageThumb;
                    }
                }
            }

            /**
             * "review":[
             * {
             * "index":0,
             * "pages":[
             * {
             * "id":"57fc71c6e182da4aa10a88c0",
             * "index":0,
             * "thumb":"img.armyhorse.com/57f9a48ae182da4aa10a87f3/57fc71c6e182da4aa10a88bf/57fc71c6e182da4aa10a88c0/FILD0782619-F4CD-4460-9BBE-45EB232ABBD0.jpg@!base_style"
             * }
             * ]
             * }
             * ]
             */
            public static class Review {
                private String index;
                private List<Pages> pages;

                public String getIndex() {
                    return index;
                }

                public void setIndex(String index) {
                    this.index = index;
                }

                public List<Pages> getPages() {
                    return pages;
                }

                public void setPages(List<Pages> pages) {
                    this.pages = pages;
                }

                //页数的
                public static class Pages {
                    private String pageId;
                    private String pageIndex;
                    private String pageThumb;

                    public String getPageId() {
                        return pageId;
                    }

                    public void setPageId(String pageId) {
                        this.pageId = pageId;
                    }

                    public String getPageIndex() {
                        return pageIndex;
                    }

                    public void setPageIndex(String pageIndex) {
                        this.pageIndex = pageIndex;
                    }

                    public String getPageThumb() {
                        return pageThumb;
                    }

                    public void setPageThumb(String pageThumb) {
                        this.pageThumb = pageThumb;
                    }
                }
            }

            public String getPrjectId() {
                return prjectId;
            }

            public void setPrjectId(String prjectId) {
                this.prjectId = prjectId;
            }

            public String getLastModifyTime() {
                return lastModifyTime;
            }

            public void setLastModifyTime(String lastModifyTime) {
                this.lastModifyTime = lastModifyTime;
            }

            public String getPageType() {
                return pageType;
            }

            public void setPageType(String pageType) {
                this.pageType = pageType;
            }

            public List<Publish> getPublish() {
                return publish;
            }

            public void setPublish(List<Publish> publish) {
                this.publish = publish;
            }

            public List<Review> getReview() {
                return review;
            }

            public void setReview(List<Review> review) {
                this.review = review;
            }
        }
    }
}
